package com.lc.qianrenshiye.fragments;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lc.qianrenshiye.BaseApplication;
import com.lc.qianrenshiye.R;
import com.lc.qianrenshiye.activity.ConfirmOrderActivity;
import com.lc.qianrenshiye.adapter.OrderAdapter;
import com.lc.qianrenshiye.conn.OrderListPost;
import com.zcx.helper.bound.BoundView;
import com.zcx.helper.bound.BoundViewHelper;
import com.zcx.helper.fragment.AppV4Fragment;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by shenyuxin on 2016/11/23.
 */
//public class FragmentNotPayOrder extends AppV4Fragment implements OrderAdapter.PayOrContinue {
//
//    @BoundView(R.id.not_pay_cancle_rl) private RelativeLayout not_pay_cancle_rl;
//    @BoundView(R.id.not_pay_order_lv) private ListView not_pay_order_lv;
//    @BoundView(R.id.not_pay_order_title_tv) private TextView not_pay_order_title_tv;
//
//    private List<OrderListPost.OrderEntity> lists = new ArrayList<>();
//    private OrderAdapter adapter;
//
//    private OrderListPost orderListPost = new OrderListPost(new AsyCallBack<OrderListPost.OrderListEntity>() {
//        @Override
//        public void onSuccess(String toast, int type, OrderListPost.OrderListEntity orderListEntity) throws Exception {
//
//            lists.addAll(orderListEntity.orderEntityList);
//
//            adapter.notifyDataSetChanged();
//        }
//
//        @Override
//        public void onFail(String toast, int type) throws Exception {
//
//
//        }
//    });
//    @Nullable
//    @Override
//    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//
//
//        View view = BoundViewHelper.boundView(this, ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) inflater.inflate(R.layout.fragment_not_pay_order, null)));
//
//        not_pay_order_title_tv.setText(R.string.not_pay_order_title_order);
//
//        not_pay_order_lv.setAdapter(adapter = new OrderAdapter(getActivity(), lists, this));
//
//        orderListPost.sid = BaseApplication.BasePreferences.readShopId();
//        orderListPost.uid = BaseApplication.BasePreferences.readUserId();
//        orderListPost.pay = "0";
//        orderListPost.time1 = "";
//        orderListPost.time2 = "";
//
//        return view;
//    }
//
//    @Override
//    public void pay(int pos) {
//
//        startActivity(new Intent(getActivity(), ConfirmOrderActivity.class));
//    }
//
//    @Override
//    public void continueChoose(int pos) {
//
//    }
//}
